<!-- 大转盘中奖弹窗 -->
<!-- 大转盘未中奖弹窗 -->
<template>
	<view class="regret-child" v-if="show">
		<template>
			<view class="mask pa" />
				<view class="content pa">
					<view class="close" @tap="close">
						<image :src="close_img" mode=""></image>
					</view>
					
					<view class="content_box">
						<view class="top">
							<view class="top_text">恭喜中奖啦！</view>
							<view class="">恭喜您抽中{{prise}}</view>
						</view>
						<view class="btn x-c">
							<view class="continue" @tap="close">继续抽奖</view>
						</view>
					</view>
					
				</view>
		</template>
	</view>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: false
			},
			
			prise: {//中奖商品
				type: String,
				default: ''
			}
		},
		data() {
			return {
				close_img: this.imgUrl + 'close.png',
			}
		},
		methods: {
			close() {
				this.$emit('close')
			}
		}
	}
</script>

<style lang="scss" scoped>
	$imgUrl: 'https://mystore-1304299581.cos.ap-guangzhou.myqcloud.com/static/image/';
	.regret-child {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		display: flex;
		justify-content: center;
		align-items: center;
		.mask {
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 998;
			background-color: rgba($color: #000000, $alpha: 0.7);
		}
		.content {
			z-index: 1000;
			.close {
				position: absolute;
				right: 0;
			}
			image {
				width: 78rpx;
				height: 78rpx;
			}
			.content_box {
				padding: 24rpx 54rpx 36rpx;
				height: 526rpx;
				width: 600rpx;
				background: url($imgUrl+'congratulations_dzp.png') no-repeat;
				background-size: 100% 100%;
				text-align: center;
				.top {
					margin-top: 216rpx;
					font-size: 24rpx;
					color: #FC8E4A;
					.top_text {
						font-size: 40rpx;
					}
				}
				.btn {
					margin-top: 48rpx;
					font-size: 30rpx;
					color: #FFF;
					.continue,.share {
						background: linear-gradient(to right,#FD924A,#F05948);
						padding: 20rpx 50rpx;
						border-radius: 44rpx;
					}
				}
			}
		}
	}
</style>

